hcf of two numbers in python using for loop